﻿
namespace NetROS.Tiers.Windows.Forms
{
	/// <summary>
	/// abstract DokumentStavka typed datagridview
	/// </summary>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class DokumentStavkaDataGridViewBase : System.Windows.Forms.UserControl
	{	
		/// <summary> 
		/// Thrown when the current Entity changed.
		/// </summary>
		public event System.EventHandler<DokumentStavkaDataGridViewEventArgs> CurrentEntityChanged;
		
		#region Fields
				
		/// <summary> 
		/// the current entity.
		/// </summary>
		private Entities.DokumentStavka _currentDokumentStavka = null;
		//private Dictionary<string, string> _columnsHeaders = new Dictionary<string, string>();
		
		/// <summary> 
		/// the datagridview instance
		/// </summary>
		protected System.Windows.Forms.DataGridView uxDokumentStavkaDataGridView;
		
		/// <summary> 
		/// the errorprovider
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxDokumentStavkaErrorProvider;
		
		/// <summary> 
		/// the bindingsource
		/// </summary>
		protected System.Windows.Forms.BindingSource uxDokumentStavkaBindingSource;
		
		
		/// <summary> 
		/// the DGV column associated with the ID property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxIDDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the IDOrgJedOd property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxIDOrgJedOdDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the IDArtikl property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxIDArtiklDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Kolicina property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxKolicinaDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Kolicina2 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxKolicina2DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Kolicina3 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxKolicina3DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Kolicina4 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxKolicina4DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Vrijednost property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxVrijednostDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Vrijednost2 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxVrijednost2DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Vrijednost3 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxVrijednost3DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Vrijednost4 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxVrijednost4DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Postotak property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxPostotakDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Postotak2 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxPostotak2DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Postotak3 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxPostotak3DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Postotak4 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxPostotak4DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Postotak5 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxPostotak5DataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the IDDokument property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxIDDokumentDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the IDValuta property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxIDValutaDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the IDValuta2 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxIDValuta2DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the IDUserCreated property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxIDUserCreatedDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the IDUserModified property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxIDUserModifiedDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Prilagoden property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxPrilagodenDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the PrilagodenJedMj property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxPrilagodenJedMjDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the Opisno property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxOpisnoDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the DateCreated property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxDateCreatedDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the DateModified property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxDateModifiedDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the DateUICreated property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxDateUICreatedDataGridViewColumn;
		
		#endregion
					
		#region Combo list
		
				
		private Entities.TList<Entities.Artikl> _IDArtiklList;
		
		/// <summary> 
		/// The list of selectable Artikl
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.Artikl> IDArtiklList
		{
			get {return this._IDArtiklList;}
			set 
			{
				this._IDArtiklList = value;
				this.uxIDArtiklDataGridViewColumn.DataSource = null;
				this.uxIDArtiklDataGridViewColumn.DataSource = this._IDArtiklList;
			}
		}
		
		private bool _allowNewItemInIDArtiklList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of Artikl
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDArtiklList
		{
			get { return _allowNewItemInIDArtiklList;}
			set
			{
				this._allowNewItemInIDArtiklList = value;
				this.uxIDArtiklDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
				
		private Entities.TList<Entities.Djelatnik> _IDUserModifiedList;
		
		/// <summary> 
		/// The list of selectable Djelatnik
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.Djelatnik> IDUserModifiedList
		{
			get {return this._IDUserModifiedList;}
			set 
			{
				this._IDUserModifiedList = value;
				this.uxIDUserModifiedDataGridViewColumn.DataSource = null;
				this.uxIDUserModifiedDataGridViewColumn.DataSource = this._IDUserModifiedList;
			}
		}
		
		private bool _allowNewItemInIDUserModifiedList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of Djelatnik
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDUserModifiedList
		{
			get { return _allowNewItemInIDUserModifiedList;}
			set
			{
				this._allowNewItemInIDUserModifiedList = value;
				this.uxIDUserModifiedDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
				
		private Entities.TList<Entities.Dokument> _IDDokumentList;
		
		/// <summary> 
		/// The list of selectable Dokument
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.Dokument> IDDokumentList
		{
			get {return this._IDDokumentList;}
			set 
			{
				this._IDDokumentList = value;
				this.uxIDDokumentDataGridViewColumn.DataSource = null;
				this.uxIDDokumentDataGridViewColumn.DataSource = this._IDDokumentList;
			}
		}
		
		private bool _allowNewItemInIDDokumentList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of Dokument
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDDokumentList
		{
			get { return _allowNewItemInIDDokumentList;}
			set
			{
				this._allowNewItemInIDDokumentList = value;
				this.uxIDDokumentDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
				
		private Entities.TList<Entities.Organizacija> _IDOrgJedOdList;
		
		/// <summary> 
		/// The list of selectable Organizacija
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.Organizacija> IDOrgJedOdList
		{
			get {return this._IDOrgJedOdList;}
			set 
			{
				this._IDOrgJedOdList = value;
				this.uxIDOrgJedOdDataGridViewColumn.DataSource = null;
				this.uxIDOrgJedOdDataGridViewColumn.DataSource = this._IDOrgJedOdList;
			}
		}
		
		private bool _allowNewItemInIDOrgJedOdList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of Organizacija
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDOrgJedOdList
		{
			get { return _allowNewItemInIDOrgJedOdList;}
			set
			{
				this._allowNewItemInIDOrgJedOdList = value;
				this.uxIDOrgJedOdDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
				
		private Entities.TList<Entities.Valuta> _IDValutaList;
		
		/// <summary> 
		/// The list of selectable Valuta
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.Valuta> IDValutaList
		{
			get {return this._IDValutaList;}
			set 
			{
				this._IDValutaList = value;
				this.uxIDValutaDataGridViewColumn.DataSource = null;
				this.uxIDValutaDataGridViewColumn.DataSource = this._IDValutaList;
			}
		}
		
		private bool _allowNewItemInIDValutaList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of Valuta
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDValutaList
		{
			get { return _allowNewItemInIDValutaList;}
			set
			{
				this._allowNewItemInIDValutaList = value;
				this.uxIDValutaDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
				
		private Entities.TList<Entities.Valuta> _IDValuta2List;
		
		/// <summary> 
		/// The list of selectable Valuta
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.Valuta> IDValuta2List
		{
			get {return this._IDValuta2List;}
			set 
			{
				this._IDValuta2List = value;
				this.uxIDValuta2DataGridViewColumn.DataSource = null;
				this.uxIDValuta2DataGridViewColumn.DataSource = this._IDValuta2List;
			}
		}
		
		private bool _allowNewItemInIDValuta2List;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of Valuta
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDValuta2List
		{
			get { return _allowNewItemInIDValuta2List;}
			set
			{
				this._allowNewItemInIDValuta2List = value;
				this.uxIDValuta2DataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
		#endregion
		
		#region Main Datasource
		
		private Entities.TList<Entities.DokumentStavka> _DokumentStavkaList;
				
		/// <summary> 
		/// The list of DokumentStavka to be displayed in the DGV.
		/// </summary>
		[System.ComponentModel.Category("Data")]
		public Entities.TList<Entities.DokumentStavka> DokumentStavkaList
		{
			get {return this._DokumentStavkaList;}
			set
			{
				this._DokumentStavkaList = value;
				this.uxDokumentStavkaBindingSource.DataSource = null;
				this.uxDokumentStavkaBindingSource.DataSource = value;
				this.uxDokumentStavkaDataGridView.DataSource = null;
				this.uxDokumentStavkaDataGridView.DataSource = this.uxDokumentStavkaBindingSource;				
				//this.uxDokumentStavkaBindingSource.ListChanged += new System.ComponentModel.ListChangedEventHandler(uxDokumentStavkaBindingSource_ListChanged);
				this.uxDokumentStavkaBindingSource.CurrentItemChanged += new System.EventHandler(OnDokumentStavkaBindingSourceCurrentItemChanged);
			}
		}
		
		private void OnDokumentStavkaBindingSourceCurrentItemChanged(object sender, System.EventArgs e)
		{
			_currentDokumentStavka = uxDokumentStavkaBindingSource.Current as Entities.DokumentStavka;
			
			if (_currentDokumentStavka != null)
			{
				_currentDokumentStavka.Validate();
			}
			//_DokumentStavka.Validate();
			OnCurrentEntityChanged();
		}

		//void uxDokumentStavkaBindingSource_ListChanged(object sender, System.ComponentModel.ListChangedEventArgs e)
		//{
			//throw new Exception("The method or operation is not implemented.");
		//}		
		
		#endregion
		
		/// <summary>
		/// Gets the currently selected <c cref="Entities.DokumentStavka"/> instance.
		/// </summary>
		public Entities.DokumentStavka SelectedDokumentStavka
		{
			get {return this._currentDokumentStavka;}
		}
		
		#region other properties
		
		/// <summary>
		/// Gets or sets a value indicating whether you have provided your own data-management operations for the DataGridView control.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool VirtualMode
		{
			get {return this.uxDokumentStavkaDataGridView.VirtualMode;}
			set
			{
				this.uxDokumentStavkaDataGridView.VirtualMode = value;
			}
		}
		
		/// <summary>
		/// Gets or sets a value indicating whether the option to add rows is displayed to the user.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool AllowUserToAddRows
		{
			get {return this.uxDokumentStavkaDataGridView.AllowUserToAddRows;}
			set {this.uxDokumentStavkaDataGridView.AllowUserToAddRows = value;}
		}
		
		/// <summary>
		/// Gets or sets a value indicating whether the user is allowed to delete rows from the DataGridView.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool AllowUserToDeleteRows
		{
			get {return this.uxDokumentStavkaDataGridView.AllowUserToDeleteRows;}
			set {this.uxDokumentStavkaDataGridView.AllowUserToDeleteRows = value;}
		}
		
		/// <summary>
		/// Gets the <c cref="DataGridView"/> instance.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public System.Windows.Forms.DataGridView DataGridView
		{
			get {return this.uxDokumentStavkaDataGridView;}
		}
		
		/// <summary>
		/// Gets a collection that contains all the columns in the control.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]		
		[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Visible)]
		//[System.ComponentModel.EditorAttribute("System.Windows.Forms.Design.DataGridViewColumnCollectionEditor, System.Design", typeof(System.Drawing.Design.UITypeEditor))] 
		public System.Windows.Forms.DataGridViewColumnCollection Columns
		{
			get { return this.uxDokumentStavkaDataGridView.Columns; }
		}
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;
	
		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	
		#region Constructor
	
		/// <summary>
		/// Initializes a new instance of the <see cref="DokumentStavkaDataGridViewBase"/> class.
		/// </summary>
		public DokumentStavkaDataGridViewBase()
		{			
			this.components = new System.ComponentModel.Container();			
			
			this.uxDokumentStavkaDataGridView = new System.Windows.Forms.DataGridView();
			this.uxDokumentStavkaBindingSource = new System.Windows.Forms.BindingSource(this.components);
			this.uxDokumentStavkaErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxIDDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxIDOrgJedOdDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxIDArtiklDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxKolicinaDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxKolicina2DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxKolicina3DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxKolicina4DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxVrijednostDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxVrijednost2DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxVrijednost3DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxVrijednost4DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxPostotakDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxPostotak2DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxPostotak3DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxPostotak4DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxPostotak5DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxIDDokumentDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxIDValutaDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxIDValuta2DataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxIDUserCreatedDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxIDUserModifiedDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxPrilagodenDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxPrilagodenJedMjDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxOpisnoDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxDateCreatedDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxDateModifiedDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxDateUICreatedDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			//this.uxIDArtiklBindingSource = new ArtiklBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDArtiklBindingSource)).BeginInit();
			//this.uxIDUserModifiedBindingSource = new DjelatnikBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDUserModifiedBindingSource)).BeginInit();
			//this.uxIDDokumentBindingSource = new DokumentBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDDokumentBindingSource)).BeginInit();
			//this.uxIDOrgJedOdBindingSource = new OrganizacijaBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDOrgJedOdBindingSource)).BeginInit();
			//this.uxIDValutaBindingSource = new ValutaBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDValutaBindingSource)).BeginInit();
			//this.uxIDValuta2BindingSource = new ValutaBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDValuta2BindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxDokumentStavkaDataGridView)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxDokumentStavkaBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxDokumentStavkaErrorProvider)).BeginInit();
			this.SuspendLayout();
						
			// 
			// uxDokumentStavkaErrorProvider
			// 
			this.uxDokumentStavkaErrorProvider.ContainerControl = this;
			this.uxDokumentStavkaErrorProvider.DataSource = this.uxDokumentStavkaBindingSource;						
			// 
			// uxDokumentStavkaDataGridView
			// 
			this.uxDokumentStavkaDataGridView.AutoGenerateColumns = false;
			this.uxDokumentStavkaDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
			this.uxDokumentStavkaDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
		this.uxIDDataGridViewColumn,
		this.uxIDOrgJedOdDataGridViewColumn,
		this.uxIDArtiklDataGridViewColumn,
		this.uxKolicinaDataGridViewColumn,
		this.uxKolicina2DataGridViewColumn,
		this.uxKolicina3DataGridViewColumn,
		this.uxKolicina4DataGridViewColumn,
		this.uxVrijednostDataGridViewColumn,
		this.uxVrijednost2DataGridViewColumn,
		this.uxVrijednost3DataGridViewColumn,
		this.uxVrijednost4DataGridViewColumn,
		this.uxPostotakDataGridViewColumn,
		this.uxPostotak2DataGridViewColumn,
		this.uxPostotak3DataGridViewColumn,
		this.uxPostotak4DataGridViewColumn,
		this.uxPostotak5DataGridViewColumn,
		this.uxIDDokumentDataGridViewColumn,
		this.uxIDValutaDataGridViewColumn,
		this.uxIDValuta2DataGridViewColumn,
		this.uxIDUserCreatedDataGridViewColumn,
		this.uxIDUserModifiedDataGridViewColumn,
		this.uxPrilagodenDataGridViewColumn,
		this.uxPrilagodenJedMjDataGridViewColumn,
		this.uxOpisnoDataGridViewColumn,
		this.uxDateCreatedDataGridViewColumn,
		this.uxDateModifiedDataGridViewColumn,
		this.uxDateUICreatedDataGridViewColumn			});
			this.uxDokumentStavkaDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
			this.uxDokumentStavkaDataGridView.Location = new System.Drawing.Point(0, 0);
			this.uxDokumentStavkaDataGridView.Name = "uxDokumentStavkaDataGridView";
			this.uxDokumentStavkaDataGridView.Size = new System.Drawing.Size(470, 300);
			this.uxDokumentStavkaDataGridView.TabIndex = 0;	
			this.uxDokumentStavkaDataGridView.BackgroundColor = System.Drawing.Color.WhiteSmoke;
			this.uxDokumentStavkaDataGridView.EnableHeadersVisualStyles = false;
			this.uxDokumentStavkaDataGridView.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.OnDokumentStavkaDataGridViewDataError);
			this.uxDokumentStavkaDataGridView.CellValueNeeded += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.OnDokumentStavkaDataGridViewCellValueNeeded);
			this.uxDokumentStavkaDataGridView.CellValuePushed += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.OnDokumentStavkaDataGridViewCellValuePushed);
			
			//
			// uxIDDataGridViewColumn
			//
			this.uxIDDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDDataGridViewColumn.DataPropertyName = "ID";
			this.uxIDDataGridViewColumn.HeaderText = "ID";
			this.uxIDDataGridViewColumn.Name = "uxIDDataGridViewColumn";
			this.uxIDDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDDataGridViewColumn.ReadOnly = true;		
			//
			// uxIDOrgJedOdDataGridViewColumn
			//
			this.uxIDOrgJedOdDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDOrgJedOdDataGridViewColumn.DataPropertyName = "IDOrgJedOd";
			this.uxIDOrgJedOdDataGridViewColumn.HeaderText = "IDOrgJedOd";
			this.uxIDOrgJedOdDataGridViewColumn.Name = "uxIDOrgJedOdDataGridViewColumn";
			this.uxIDOrgJedOdDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDOrgJedOdDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDOrgJedOdDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDArtiklDataGridViewColumn
			//
			this.uxIDArtiklDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDArtiklDataGridViewColumn.DataPropertyName = "IDArtikl";
			this.uxIDArtiklDataGridViewColumn.HeaderText = "IDArtikl";
			this.uxIDArtiklDataGridViewColumn.Name = "uxIDArtiklDataGridViewColumn";
			this.uxIDArtiklDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDArtiklDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDArtiklDataGridViewColumn.ReadOnly = false;		
			//
			// uxKolicinaDataGridViewColumn
			//
			this.uxKolicinaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxKolicinaDataGridViewColumn.DataPropertyName = "Kolicina";
			this.uxKolicinaDataGridViewColumn.HeaderText = "Kolicina";
			this.uxKolicinaDataGridViewColumn.Name = "uxKolicinaDataGridViewColumn";
			this.uxKolicinaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxKolicinaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxKolicinaDataGridViewColumn.ReadOnly = false;		
			//
			// uxKolicina2DataGridViewColumn
			//
			this.uxKolicina2DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxKolicina2DataGridViewColumn.DataPropertyName = "Kolicina2";
			this.uxKolicina2DataGridViewColumn.HeaderText = "Kolicina2";
			this.uxKolicina2DataGridViewColumn.Name = "uxKolicina2DataGridViewColumn";
			this.uxKolicina2DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxKolicina2DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxKolicina2DataGridViewColumn.ReadOnly = false;		
			//
			// uxKolicina3DataGridViewColumn
			//
			this.uxKolicina3DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxKolicina3DataGridViewColumn.DataPropertyName = "Kolicina3";
			this.uxKolicina3DataGridViewColumn.HeaderText = "Kolicina3";
			this.uxKolicina3DataGridViewColumn.Name = "uxKolicina3DataGridViewColumn";
			this.uxKolicina3DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxKolicina3DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxKolicina3DataGridViewColumn.ReadOnly = false;		
			//
			// uxKolicina4DataGridViewColumn
			//
			this.uxKolicina4DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxKolicina4DataGridViewColumn.DataPropertyName = "Kolicina4";
			this.uxKolicina4DataGridViewColumn.HeaderText = "Kolicina4";
			this.uxKolicina4DataGridViewColumn.Name = "uxKolicina4DataGridViewColumn";
			this.uxKolicina4DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxKolicina4DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxKolicina4DataGridViewColumn.ReadOnly = false;		
			//
			// uxVrijednostDataGridViewColumn
			//
			this.uxVrijednostDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxVrijednostDataGridViewColumn.DataPropertyName = "Vrijednost";
			this.uxVrijednostDataGridViewColumn.HeaderText = "Vrijednost";
			this.uxVrijednostDataGridViewColumn.Name = "uxVrijednostDataGridViewColumn";
			this.uxVrijednostDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxVrijednostDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxVrijednostDataGridViewColumn.ReadOnly = false;		
			//
			// uxVrijednost2DataGridViewColumn
			//
			this.uxVrijednost2DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxVrijednost2DataGridViewColumn.DataPropertyName = "Vrijednost2";
			this.uxVrijednost2DataGridViewColumn.HeaderText = "Vrijednost2";
			this.uxVrijednost2DataGridViewColumn.Name = "uxVrijednost2DataGridViewColumn";
			this.uxVrijednost2DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxVrijednost2DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxVrijednost2DataGridViewColumn.ReadOnly = false;		
			//
			// uxVrijednost3DataGridViewColumn
			//
			this.uxVrijednost3DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxVrijednost3DataGridViewColumn.DataPropertyName = "Vrijednost3";
			this.uxVrijednost3DataGridViewColumn.HeaderText = "Vrijednost3";
			this.uxVrijednost3DataGridViewColumn.Name = "uxVrijednost3DataGridViewColumn";
			this.uxVrijednost3DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxVrijednost3DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxVrijednost3DataGridViewColumn.ReadOnly = false;		
			//
			// uxVrijednost4DataGridViewColumn
			//
			this.uxVrijednost4DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxVrijednost4DataGridViewColumn.DataPropertyName = "Vrijednost4";
			this.uxVrijednost4DataGridViewColumn.HeaderText = "Vrijednost4";
			this.uxVrijednost4DataGridViewColumn.Name = "uxVrijednost4DataGridViewColumn";
			this.uxVrijednost4DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxVrijednost4DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxVrijednost4DataGridViewColumn.ReadOnly = false;		
			//
			// uxPostotakDataGridViewColumn
			//
			this.uxPostotakDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxPostotakDataGridViewColumn.DataPropertyName = "Postotak";
			this.uxPostotakDataGridViewColumn.HeaderText = "Postotak";
			this.uxPostotakDataGridViewColumn.Name = "uxPostotakDataGridViewColumn";
			this.uxPostotakDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxPostotakDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxPostotakDataGridViewColumn.ReadOnly = false;		
			//
			// uxPostotak2DataGridViewColumn
			//
			this.uxPostotak2DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxPostotak2DataGridViewColumn.DataPropertyName = "Postotak2";
			this.uxPostotak2DataGridViewColumn.HeaderText = "Postotak2";
			this.uxPostotak2DataGridViewColumn.Name = "uxPostotak2DataGridViewColumn";
			this.uxPostotak2DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxPostotak2DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxPostotak2DataGridViewColumn.ReadOnly = false;		
			//
			// uxPostotak3DataGridViewColumn
			//
			this.uxPostotak3DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxPostotak3DataGridViewColumn.DataPropertyName = "Postotak3";
			this.uxPostotak3DataGridViewColumn.HeaderText = "Postotak3";
			this.uxPostotak3DataGridViewColumn.Name = "uxPostotak3DataGridViewColumn";
			this.uxPostotak3DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxPostotak3DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxPostotak3DataGridViewColumn.ReadOnly = false;		
			//
			// uxPostotak4DataGridViewColumn
			//
			this.uxPostotak4DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxPostotak4DataGridViewColumn.DataPropertyName = "Postotak4";
			this.uxPostotak4DataGridViewColumn.HeaderText = "Postotak4";
			this.uxPostotak4DataGridViewColumn.Name = "uxPostotak4DataGridViewColumn";
			this.uxPostotak4DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxPostotak4DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxPostotak4DataGridViewColumn.ReadOnly = false;		
			//
			// uxPostotak5DataGridViewColumn
			//
			this.uxPostotak5DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxPostotak5DataGridViewColumn.DataPropertyName = "Postotak5";
			this.uxPostotak5DataGridViewColumn.HeaderText = "Postotak5";
			this.uxPostotak5DataGridViewColumn.Name = "uxPostotak5DataGridViewColumn";
			this.uxPostotak5DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxPostotak5DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxPostotak5DataGridViewColumn.ReadOnly = false;		
			//
			// uxIDDokumentDataGridViewColumn
			//
			this.uxIDDokumentDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDDokumentDataGridViewColumn.DataPropertyName = "IDDokument";
			this.uxIDDokumentDataGridViewColumn.HeaderText = "IDDokument";
			this.uxIDDokumentDataGridViewColumn.Name = "uxIDDokumentDataGridViewColumn";
			this.uxIDDokumentDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDDokumentDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDDokumentDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDValutaDataGridViewColumn
			//
			this.uxIDValutaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDValutaDataGridViewColumn.DataPropertyName = "IDValuta";
			this.uxIDValutaDataGridViewColumn.HeaderText = "IDValuta";
			this.uxIDValutaDataGridViewColumn.Name = "uxIDValutaDataGridViewColumn";
			this.uxIDValutaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDValutaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDValutaDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDValuta2DataGridViewColumn
			//
			this.uxIDValuta2DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDValuta2DataGridViewColumn.DataPropertyName = "IDValuta2";
			this.uxIDValuta2DataGridViewColumn.HeaderText = "IDValuta2";
			this.uxIDValuta2DataGridViewColumn.Name = "uxIDValuta2DataGridViewColumn";
			this.uxIDValuta2DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDValuta2DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDValuta2DataGridViewColumn.ReadOnly = false;		
			//
			// uxIDUserCreatedDataGridViewColumn
			//
			this.uxIDUserCreatedDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDUserCreatedDataGridViewColumn.DataPropertyName = "IDUserCreated";
			this.uxIDUserCreatedDataGridViewColumn.HeaderText = "IDUserCreated";
			this.uxIDUserCreatedDataGridViewColumn.Name = "uxIDUserCreatedDataGridViewColumn";
			this.uxIDUserCreatedDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDUserCreatedDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDUserCreatedDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDUserModifiedDataGridViewColumn
			//
			this.uxIDUserModifiedDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIDUserModifiedDataGridViewColumn.DataPropertyName = "IDUserModified";
			this.uxIDUserModifiedDataGridViewColumn.HeaderText = "IDUserModified";
			this.uxIDUserModifiedDataGridViewColumn.Name = "uxIDUserModifiedDataGridViewColumn";
			this.uxIDUserModifiedDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIDUserModifiedDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIDUserModifiedDataGridViewColumn.ReadOnly = false;		
			//
			// uxPrilagodenDataGridViewColumn
			//
			this.uxPrilagodenDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxPrilagodenDataGridViewColumn.DataPropertyName = "Prilagoden";
			this.uxPrilagodenDataGridViewColumn.HeaderText = "Prilagoden";
			this.uxPrilagodenDataGridViewColumn.Name = "uxPrilagodenDataGridViewColumn";
			this.uxPrilagodenDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxPrilagodenDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxPrilagodenDataGridViewColumn.ReadOnly = false;		
			//
			// uxPrilagodenJedMjDataGridViewColumn
			//
			this.uxPrilagodenJedMjDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxPrilagodenJedMjDataGridViewColumn.DataPropertyName = "PrilagodenJedMj";
			this.uxPrilagodenJedMjDataGridViewColumn.HeaderText = "PrilagodenJedMj";
			this.uxPrilagodenJedMjDataGridViewColumn.Name = "uxPrilagodenJedMjDataGridViewColumn";
			this.uxPrilagodenJedMjDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxPrilagodenJedMjDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxPrilagodenJedMjDataGridViewColumn.ReadOnly = false;		
			//
			// uxOpisnoDataGridViewColumn
			//
			this.uxOpisnoDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxOpisnoDataGridViewColumn.DataPropertyName = "Opisno";
			this.uxOpisnoDataGridViewColumn.HeaderText = "Opisno";
			this.uxOpisnoDataGridViewColumn.Name = "uxOpisnoDataGridViewColumn";
			this.uxOpisnoDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxOpisnoDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxOpisnoDataGridViewColumn.ReadOnly = false;		
			//
			// uxDateCreatedDataGridViewColumn
			//
			this.uxDateCreatedDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxDateCreatedDataGridViewColumn.DataPropertyName = "DateCreated";
			this.uxDateCreatedDataGridViewColumn.HeaderText = "DateCreated";
			this.uxDateCreatedDataGridViewColumn.Name = "uxDateCreatedDataGridViewColumn";
			this.uxDateCreatedDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxDateCreatedDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxDateCreatedDataGridViewColumn.ReadOnly = false;		
			//
			// uxDateModifiedDataGridViewColumn
			//
			this.uxDateModifiedDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxDateModifiedDataGridViewColumn.DataPropertyName = "DateModified";
			this.uxDateModifiedDataGridViewColumn.HeaderText = "DateModified";
			this.uxDateModifiedDataGridViewColumn.Name = "uxDateModifiedDataGridViewColumn";
			this.uxDateModifiedDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxDateModifiedDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxDateModifiedDataGridViewColumn.ReadOnly = false;		
			//
			// uxDateUICreatedDataGridViewColumn
			//
			this.uxDateUICreatedDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxDateUICreatedDataGridViewColumn.DataPropertyName = "DateUICreated";
			this.uxDateUICreatedDataGridViewColumn.HeaderText = "DateUICreated";
			this.uxDateUICreatedDataGridViewColumn.Name = "uxDateUICreatedDataGridViewColumn";
			this.uxDateUICreatedDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxDateUICreatedDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxDateUICreatedDataGridViewColumn.ReadOnly = false;		
			//
			// uxIDArtiklDataGridViewColumn
			//				
			this.uxIDArtiklDataGridViewColumn.DisplayMember = "Naziv";	
			this.uxIDArtiklDataGridViewColumn.ValueMember = "ID";	
			this.uxIDArtiklDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxIDArtiklDataGridViewColumn.DataSource = uxIDArtiklBindingSource;				
				
			//
			// uxIDUserModifiedDataGridViewColumn
			//				
			this.uxIDUserModifiedDataGridViewColumn.DisplayMember = "Naziv";	
			this.uxIDUserModifiedDataGridViewColumn.ValueMember = "ID";	
			this.uxIDUserModifiedDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxIDUserModifiedDataGridViewColumn.DataSource = uxIDUserModifiedBindingSource;				
				
			//
			// uxIDDokumentDataGridViewColumn
			//				
			this.uxIDDokumentDataGridViewColumn.DisplayMember = "IDDokumentTip";	
			this.uxIDDokumentDataGridViewColumn.ValueMember = "ID";	
			this.uxIDDokumentDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxIDDokumentDataGridViewColumn.DataSource = uxIDDokumentBindingSource;				
				
			//
			// uxIDOrgJedOdDataGridViewColumn
			//				
			this.uxIDOrgJedOdDataGridViewColumn.DisplayMember = "Naziv";	
			this.uxIDOrgJedOdDataGridViewColumn.ValueMember = "ID";	
			this.uxIDOrgJedOdDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxIDOrgJedOdDataGridViewColumn.DataSource = uxIDOrgJedOdBindingSource;				
				
			//
			// uxIDValutaDataGridViewColumn
			//				
			this.uxIDValutaDataGridViewColumn.DisplayMember = "Naziv";	
			this.uxIDValutaDataGridViewColumn.ValueMember = "ID";	
			this.uxIDValutaDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxIDValutaDataGridViewColumn.DataSource = uxIDValutaBindingSource;				
				
			//
			// uxIDValuta2DataGridViewColumn
			//				
			this.uxIDValuta2DataGridViewColumn.DisplayMember = "Naziv";	
			this.uxIDValuta2DataGridViewColumn.ValueMember = "ID";	
			this.uxIDValuta2DataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxIDValuta2DataGridViewColumn.DataSource = uxIDValuta2BindingSource;				
				
			
			// this
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.Controls.Add(this.uxDokumentStavkaDataGridView);
			this.Name = "DokumentStavkaDataGridView";
			this.Size = new System.Drawing.Size(470, 300);
			//((System.ComponentModel.ISupportInitialize)(this.uxIDArtiklBindingSource)).EndInit();
			//((System.ComponentModel.ISupportInitialize)(this.uxIDUserModifiedBindingSource)).EndInit();
			//((System.ComponentModel.ISupportInitialize)(this.uxIDDokumentBindingSource)).EndInit();
			//((System.ComponentModel.ISupportInitialize)(this.uxIDOrgJedOdBindingSource)).EndInit();
			//((System.ComponentModel.ISupportInitialize)(this.uxIDValutaBindingSource)).EndInit();
			//((System.ComponentModel.ISupportInitialize)(this.uxIDValuta2BindingSource)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxDokumentStavkaErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxDokumentStavkaDataGridView)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxDokumentStavkaBindingSource)).EndInit();
			this.ResumeLayout(false);
		}
		#endregion
				
		#region events
		
		/// <summary>
		/// Raised the CurrentEntityChanged event.
		/// </summary>
		protected void OnCurrentEntityChanged()
		{
			if (CurrentEntityChanged != null)
			{
				DokumentStavkaDataGridViewEventArgs args = new DokumentStavkaDataGridViewEventArgs();
				args.DokumentStavka = _currentDokumentStavka;
				CurrentEntityChanged(this, args); 
			}
		}
		
		#endregion
		
		/// <summary>
		/// Strongly typed event 
		/// </summary>
		public class DokumentStavkaDataGridViewEventArgs : System.EventArgs
		{
			private Entities.DokumentStavka	_DokumentStavka;
	
			/// <summary>
			/// the  Entities.DokumentStavka instance.
			/// </summary>
			public Entities.DokumentStavka DokumentStavka
			{
				get { return _DokumentStavka; }
				set { _DokumentStavka = value; }
			}	
		}
		
		/// <summary>
		/// Handles the DataError event of the uxDokumentStavkaDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewDataErrorEventArgs"/> instance containing the event data.</param>
		protected void OnDokumentStavkaDataGridViewDataError(object sender, System.Windows.Forms.DataGridViewDataErrorEventArgs e)
		{
			System.Diagnostics.Debug.WriteLine(string.Format( "{0}, {1}", e.ColumnIndex, e.RowIndex));
		}
		
		/// <summary>
		/// Handles the CellValueNeeded event of the uxDokumentStavkaDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param>
		protected void OnDokumentStavkaDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e)
		{
			switch(uxDokumentStavkaDataGridView.Columns[e.ColumnIndex].Name)
			{
					case "uxIDDataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].ID;
						break;
					case "uxIDOrgJedOdDataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].IDOrgJedOd;
						break;
					case "uxIDArtiklDataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].IDArtikl;
						break;
					case "uxKolicinaDataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].Kolicina;
						break;
					case "uxKolicina2DataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].Kolicina2;
						break;
					case "uxKolicina3DataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].Kolicina3;
						break;
					case "uxKolicina4DataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].Kolicina4;
						break;
					case "uxVrijednostDataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].Vrijednost;
						break;
					case "uxVrijednost2DataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].Vrijednost2;
						break;
					case "uxVrijednost3DataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].Vrijednost3;
						break;
					case "uxVrijednost4DataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].Vrijednost4;
						break;
					case "uxPostotakDataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].Postotak;
						break;
					case "uxPostotak2DataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].Postotak2;
						break;
					case "uxPostotak3DataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].Postotak3;
						break;
					case "uxPostotak4DataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].Postotak4;
						break;
					case "uxPostotak5DataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].Postotak5;
						break;
					case "uxIDDokumentDataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].IDDokument;
						break;
					case "uxIDValutaDataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].IDValuta;
						break;
					case "uxIDValuta2DataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].IDValuta2;
						break;
					case "uxIDUserCreatedDataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].IDUserCreated;
						break;
					case "uxIDUserModifiedDataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].IDUserModified;
						break;
					case "uxPrilagodenDataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].Prilagoden;
						break;
					case "uxPrilagodenJedMjDataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].PrilagodenJedMj;
						break;
					case "uxOpisnoDataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].Opisno;
						break;
					case "uxDateCreatedDataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].DateCreated;
						break;
					case "uxDateModifiedDataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].DateModified;
						break;
					case "uxDateUICreatedDataGridViewColumn":
						e.Value = DokumentStavkaList[e.RowIndex].DateUICreated;
						break;
				default:
				break;
			}
		}
		
		/// <summary>
		/// Handles the CellValuePushed event of the uxDokumentStavkaDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param>
		protected void OnDokumentStavkaDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e)
		{
			switch(uxDokumentStavkaDataGridView.Columns[e.ColumnIndex].Name)
			{
					case "uxIDDataGridViewColumn":
						DokumentStavkaList[e.RowIndex].ID = (System.Int32)e.Value;
						break;
					case "uxIDOrgJedOdDataGridViewColumn":
						DokumentStavkaList[e.RowIndex].IDOrgJedOd = (System.Int32)e.Value;
						break;
					case "uxIDArtiklDataGridViewColumn":
						DokumentStavkaList[e.RowIndex].IDArtikl = (System.Int32?)e.Value;
						break;
					case "uxKolicinaDataGridViewColumn":
						DokumentStavkaList[e.RowIndex].Kolicina = (System.Single)e.Value;
						break;
					case "uxKolicina2DataGridViewColumn":
						DokumentStavkaList[e.RowIndex].Kolicina2 = (System.Single?)e.Value;
						break;
					case "uxKolicina3DataGridViewColumn":
						DokumentStavkaList[e.RowIndex].Kolicina3 = (System.Single?)e.Value;
						break;
					case "uxKolicina4DataGridViewColumn":
						DokumentStavkaList[e.RowIndex].Kolicina4 = (System.Single?)e.Value;
						break;
					case "uxVrijednostDataGridViewColumn":
						DokumentStavkaList[e.RowIndex].Vrijednost = (System.Decimal?)e.Value;
						break;
					case "uxVrijednost2DataGridViewColumn":
						DokumentStavkaList[e.RowIndex].Vrijednost2 = (System.Decimal?)e.Value;
						break;
					case "uxVrijednost3DataGridViewColumn":
						DokumentStavkaList[e.RowIndex].Vrijednost3 = (System.Decimal?)e.Value;
						break;
					case "uxVrijednost4DataGridViewColumn":
						DokumentStavkaList[e.RowIndex].Vrijednost4 = (System.Decimal?)e.Value;
						break;
					case "uxPostotakDataGridViewColumn":
						DokumentStavkaList[e.RowIndex].Postotak = (System.Single?)e.Value;
						break;
					case "uxPostotak2DataGridViewColumn":
						DokumentStavkaList[e.RowIndex].Postotak2 = (System.Single?)e.Value;
						break;
					case "uxPostotak3DataGridViewColumn":
						DokumentStavkaList[e.RowIndex].Postotak3 = (System.Single?)e.Value;
						break;
					case "uxPostotak4DataGridViewColumn":
						DokumentStavkaList[e.RowIndex].Postotak4 = (System.Single?)e.Value;
						break;
					case "uxPostotak5DataGridViewColumn":
						DokumentStavkaList[e.RowIndex].Postotak5 = (System.Single?)e.Value;
						break;
					case "uxIDDokumentDataGridViewColumn":
						DokumentStavkaList[e.RowIndex].IDDokument = (System.Int32)e.Value;
						break;
					case "uxIDValutaDataGridViewColumn":
						DokumentStavkaList[e.RowIndex].IDValuta = (System.Int32?)e.Value;
						break;
					case "uxIDValuta2DataGridViewColumn":
						DokumentStavkaList[e.RowIndex].IDValuta2 = (System.Int32?)e.Value;
						break;
					case "uxIDUserCreatedDataGridViewColumn":
						DokumentStavkaList[e.RowIndex].IDUserCreated = (System.Int32)e.Value;
						break;
					case "uxIDUserModifiedDataGridViewColumn":
						DokumentStavkaList[e.RowIndex].IDUserModified = (System.Int32)e.Value;
						break;
					case "uxPrilagodenDataGridViewColumn":
						DokumentStavkaList[e.RowIndex].Prilagoden = (System.String)e.Value;
						break;
					case "uxPrilagodenJedMjDataGridViewColumn":
						DokumentStavkaList[e.RowIndex].PrilagodenJedMj = (System.String)e.Value;
						break;
					case "uxOpisnoDataGridViewColumn":
						DokumentStavkaList[e.RowIndex].Opisno = (System.String)e.Value;
						break;
					case "uxDateCreatedDataGridViewColumn":
						DokumentStavkaList[e.RowIndex].DateCreated = (System.DateTime)e.Value;
						break;
					case "uxDateModifiedDataGridViewColumn":
						DokumentStavkaList[e.RowIndex].DateModified = (System.DateTime)e.Value;
						break;
					case "uxDateUICreatedDataGridViewColumn":
						DokumentStavkaList[e.RowIndex].DateUICreated = (System.DateTime)e.Value;
						break;
				default:
				break;
			}
		}
	}
}
